<?php foreach($comments as $comment): ?>
<div class="comment" id="c<?php echo $comment->comment_ID; ?>">
	<?php if(!Yii::app()->user->isGuest): ?>
		<div style="float:right"><?php echo CHtml::link('删除', $comment->deleteUrl); ?></div>
	<?php endif?>
	<div class="author">
		<?php echo $comment->comment_author; ?> :
	</div>
	
	<div class="time">
		<?php echo $comment->comment_date; ?>
	</div>

	<div class="content">
		<?php echo nl2br(CHtml::encode($comment->comment_content)); ?>
	</div>

</div><!-- comment -->
<?php endforeach; ?>